package com.minishift.android.utils;

import android.util.Log;

/**
 * 
 * this class is uesd to print logs.
 * @author Sirier
 *
 */
public final class XLog extends Object{
	
	/**
	 * this method will print logs and tag of view.
	 * @param String: tag.
	 * @param String: msg.
	 */
	public static void v(String tag, String msg){
		Log.v(tag, "[views]"+msg+"["+(new Exception()).getStackTrace()[1].toString()+"]");
	}
	
	/**
	 * this method will print logs and tag of debug.
	 * @param String: tag.
	 * @param String: msg.
	 */
	public static void d(String tag, String msg){
		Log.d(tag, "[debug]"+msg+"["+(new Exception()).getStackTrace()[1].toString()+"]");
	}
	
	/**
	 * this method will print logs and tag of info.
	 * @param String: tag.
	 * @param String: msg.
	 */
	public static void i(String tag, String msg){
		Log.i(tag, "[infos]"+msg+"["+(new Exception()).getStackTrace()[1].toString()+"]");
	}
	
	/**
	 * this method will print logs and tag of wring.
	 * @param String: tag.
	 * @param String: msg.
	 */
	public static void w(String tag, String msg){
		Log.w(tag, "[error]"+msg+"["+(new Exception()).getStackTrace()[1].toString()+"]");
	}
	
	/**
	 * this method will print logs and tag of error.
	 * @param String: tag.
	 * @param String: msg.
	 */
	public static void e(String tag, String msg){
		Log.e(tag, "[error]"+msg+"["+(new Exception()).getStackTrace()[1].toString()+"]");
	}
}
